package com.pcbly.web.persistence.group;
 

import com.pcbly.web.bean.system.GroupBean; 
import com.pcbly.web.components.utils.random.GUID;
import com.pcbly.web.persistence.HibernateBaseDao;

public class GroupHibernateDao extends HibernateBaseDao<GroupBean> implements
		GroupDao {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8121092100733129323L;
	public GroupHibernateDao(){
		
	}
	protected Class<GroupBean> getEntityClass() {
		return GroupBean.class;
	}
	@Override
	public void saveGroupBean(GroupBean bean) throws Exception {
		// TODO Auto-generated method stub
		String id=(new GUID()).toString();
		bean.setId(id);
		getHibernateTemplate().save(bean);
	}

	
}
